<template>
  <div id="app">
    <hea-ders></hea-ders>
    <router-view></router-view>
    <foo-ter v-show="$route.meta.show"></foo-ter>
  </div>
</template>

<script>
import HeaDers from "@/components/Header";
import FooTer from "./components/Footer";
export default {
  name: "App",
  components: {
    HeaDers,
    FooTer,
  },
  mounted() {
    //通知Vuex发请求，获取数据，存储于仓库当中
    this.$store.dispatch("categoryList");
  },
};
</script>

<style>
</style>
